/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  // 登录注册页面
  {
    path: "/userLoginReg",
    component: () => import("@/views/userLoginReg/Index"),
    meta: { title: "页面" },
    children: [
      {
        name: "系统解锁",
        path: "lock",
        component: () => import("@/views/userLoginReg/Lock"),
        meta: { title: "系统解锁" },
      },
      {
        name: "用户登录",
        path: "login",
        component: () => import("@/views/userLoginReg/Login"),
        meta: { title: "用户登录" },
      },
      {
        name: "找回密码",
        path: "find-password",
        component: () => import("@/views/userLoginReg/FindPassword"),
        meta: { title: "找回密码" },
      },
      {
        name: "用户注册",
        path: "register",
        component: () => import("@/views/userLoginReg/Register"),
        meta: { title: "用户注册" },
      },
    ],
  },
  // 404 页面（注意404页面一定要放在路由的最后，不然存在的页面也会找不到，因为“*”会将存在的页面也匹配为404）
  {
    path: "/error",
    component: () => import("@/views/userLoginReg/Index"),
    meta: { title: "error" },
    children: [
      {
        name: "404 Error",
        path: "/404", // 解决 由于404页面没有指定路径导致，所有页面在浏览器栏刷新时出现找不到而跳转到了404页面的情况
        component: () => import("@/views/userLoginReg/Error"),
        meta: { title: "404 页面" },
      },
    ],
  },
];
